package cn.tedu._02notice.controller;

import cn.tedu._02notice.pojo.dto.UserLoginParam;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

@RestController
@Tag(name = "02-用户管理模块")
@RequestMapping("/v1/user/")
public class UserController {

    @PostMapping("login1")
    public String login1(UserLoginParam userLoginParam) {
        System.out.println("userLoginParam:" + userLoginParam);
        return "form方式登录成功";
    }

    @PostMapping("login2")
    public String login2(@RequestBody UserLoginParam userLoginParam) {
        System.out.println("userLoginParam:" + userLoginParam);
        return "json方式登录成功";
    }
}
